#include "bo3d.h"

BBDECL void __stdcall o_logMessage(const char* message, int lml, bool maskDebug)
{
	Ogre::LogMessageLevel ll;
	switch(lml)
	{
	case 1	: ll = LML_TRIVIAL; break;
	case 2	: ll = LML_NORMAL; break;
	case 3	: ll = LML_CRITICAL; break;
	default	: ll = LML_NORMAL; break;
	}

	try
	{
		Ogre::LogManager::getSingleton().logMessage(Ogre::String(message), ll, maskDebug);
	}
	catch(Ogre::Exception &e)
	{
		std::cout << e.getDescription() << std::endl;
	}
}